<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>忘记密码 | 超现实数码潮玩</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        /* 修复滚动条问题 */
        html {
            overflow-y: scroll;
        }

        body {
            width: 100vw;
            overflow-x: hidden;
            position: relative;
            background: #0a0a16;
            color: #fff;
            background-image:
                radial-gradient(circle at 10% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 50% 50%, rgba(128, 0, 255, 0.05) 0%, transparent 30%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 迷幻背景动画 */
        .psychedelic-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.7;
            background:
                radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.3) 0%, transparent 25%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.3) 0%, transparent 25%),
                radial-gradient(circle at 40% 40%, rgba(128, 0, 255, 0.2) 0%, transparent 25%);
            animation: bgShift 15s infinite alternate;
        }

        @keyframes bgShift {
            0% {
                transform: scale(1) rotate(0deg);
            }

            100% {
                transform: scale(1.1) rotate(3deg);
            }
        }

        /* 导航栏 */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            width: 100%;
            background: rgba(10, 10, 22, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-links a {
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            position: relative;
            padding: 5px 0;
            transition: all 0.3s;
        }

        .nav-links a.active {
            color: #ff00cc;
        }

        .nav-links a.active:after {
            width: 100%;
        }

        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #ff00cc, #3333ff);
            transition: width 0.3s;
        }

        .nav-links a:hover {
            color: #ff00cc;
        }

        .nav-links a:hover:after {
            width: 100%;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .cart-icon {
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .user-avatar i {
            font-size: 20px;
            color: white;
        }

        /* 忘记密码区域 */
        .forgot-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex: 1;
            padding: 50px 5%;
            position: relative;
        }

        .forgot-card {
            background: rgba(20, 20, 40, 0.8);
            border-radius: 20px;
            padding: 40px;
            width: 100%;
            max-width: 500px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            z-index: 2;
        }

        .forgot-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .forgot-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ff00cc, #00ccff, #ffcc00);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
        }

        .forgot-header p {
            color: #ccccff;
            font-size: 1rem;
        }

        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #ccccff;
            font-weight: 600;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            background: rgba(30, 30, 60, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #fff;
            font-size: 1rem;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: #ff00cc;
            box-shadow: 0 0 10px rgba(255, 0, 204, 0.3);
        }

        .verification-group {
            display: flex;
            gap: 10px;
        }

        .verification-group .form-control {
            flex: 1;
        }

        .btn-send-code {
            padding: 12px 20px;
            background: rgba(30, 30, 60, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #ccccff;
            cursor: pointer;
            transition: background 0.3s, color 0.3s;
            /* 只过渡背景、颜色和边框 */
            white-space: nowrap;
        }

        .btn-send-code:hover:not(:disabled) {
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            color: white;
            border: 1px solid #262626;
        }

        .btn-send-code:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-reset {
            width: 100%;
            padding: 12px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 20px;
        }

        .btn-reset:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 0, 204, 0.3);
        }

        .reset-steps {
            margin-top: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border-left: 4px solid #ff00cc;
        }

        .reset-steps h3 {
            color: #ffcc00;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .reset-steps ol {
            padding-left: 20px;
            color: #ccccff;
        }

        .reset-steps li {
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .back-login {
            text-align: center;
            margin-top: 20px;
        }

        .back-login a {
            color: #00ccff;
            text-decoration: none;
            transition: color 0.3s;
        }

        .back-login a:hover {
            color: #ff00cc;
        }

        /* 超现实元素 */
        .surreal-elements {
            position: absolute;
            pointer-events: none;
            z-index: 1;
        }

        .floating-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.7;
            animation: float 6s infinite ease-in-out;
        }

        .shape-1 {
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, #ff00cc, transparent);
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, #00ccff, transparent);
            top: 60%;
            right: 10%;
            animation-delay: 2s;
        }

        .shape-3 {
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, #ffcc00, transparent);
            bottom: 20%;
            left: 15%;
            animation-delay: 4s;
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(180deg);
            }

            100% {
                transform: translateY(0) rotate(360deg);
            }
        }

        /* 扭曲网格 */
        .distorted-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 0, 204, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 0, 204, 0.1) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridDistort 10s infinite linear;
            transform-origin: center top;
            z-index: -1;
        }

        @keyframes gridDistort {
            0% {
                transform: perspective(500px) rotateX(60deg) scale(1);
            }

            50% {
                transform: perspective(500px) rotateX(60deg) scale(1.2) skew(5deg, 5deg);
            }

            100% {
                transform: perspective(500px) rotateX(60deg) scale(1);
            }
        }

        /* 页脚 */
        footer {
            background: rgba(10, 10, 30, 0.9);
            padding: 30px 5%;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: auto;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
        }

        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: #ffcc00;
        }

        .footer-section p,
        .footer-section a {
            color: #ccccff;
            margin-bottom: 10px;
            display: block;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: #ff00cc;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: linear-gradient(45deg, #ff00cc, #3333ff);
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
            transition: all 0.3s;
        }

        .social-links a:hover {
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #8888cc;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .forgot-card {
                padding: 30px 20px;
            }

            .forgot-header h1 {
                font-size: 2rem;
            }

            .verification-group {
                flex-direction: column;
            }

            .btn-send-code {
                width: 100%;
            }
        }
    </style>
</head>

<body>
    <!-- 迷幻背景 -->
    <div class="psychedelic-bg"></div>

    <!-- 超现实浮动元素 -->
    <div class="surreal-elements">
        <div class="floating-shape shape-1"></div>
        <div class="floating-shape shape-2"></div>
        <div class="floating-shape shape-3"></div>
    </div>

    <!-- 扭曲网格 -->
    <div class="distorted-grid"></div>

    <!-- 导航栏 -->
    <nav>
        <div class="logo">PSYCHEDELIC TOYS</div>
        <div class="nav-links">
            <a href="index_2.html">首页</a>
            <a href="toys.html">潮玩</a>
            <a href="artists.html">艺术家</a>
            <a href="exhibitions.html">展览</a>
            <a href="news_list.html">新闻资讯</a>
            <a href="about.html">关于我们</a>
            <a href="orders.html">我的订单</a>
        </div>
        <div class="user-menu">
            <div class="cart-icon">
                <a href="cart.html"><i class="fas fa-shopping-cart"></i></a>
                <span class="cart-count">3</span>
            </div>
            <div class="user-avatar">
                <i class="fas fa-user"></i>
            </div>
        </div>
    </nav>

    <!-- 忘记密码区域 -->
    <section class="forgot-container">
        <div class="forgot-card">
            <div class="forgot-header">
                <h1>重置密码</h1>
                <p>请输入您的注册邮箱，我们将发送验证码帮助您重置密码</p>
            </div>

            <form id="forgotForm">
                <div class="form-group">
                    <label for="email">电子邮箱</label>
                    <input type="email" id="email" class="form-control" placeholder="请输入您的注册邮箱" required>
                </div>

                <div class="form-group">
                    <label for="verificationCode">验证码</label>
                    <div class="verification-group">
                        <input type="text" id="verificationCode" class="form-control" placeholder="请输入验证码" required>
                        <button type="button" class="btn-send-code" id="sendCodeBtn">发送验证码</button>
                    </div>
                </div>

                <button type="submit" class="btn-reset">重置密码</button>
            </form>

            <div class="reset-steps">
                <h3>密码重置流程</h3>
                <ol>
                    <li>输入您注册时使用的电子邮箱</li>
                    <li>点击"发送验证码"按钮获取验证码</li>
                    <li>检查您的邮箱，输入收到的验证码</li>
                    <li>点击"重置密码"按钮完成密码重置</li>
                    <li>系统将引导您设置新的密码</li>
                </ol>
            </div>

            <div class="back-login">
                <a href="login.html">← 返回登录页面</a>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer>
        <div class="footer-content">
            <div class="footer-section">
                <h3>关于我们</h3>
                <p>超现实数码潮玩是一家专注于数字艺术品创作与发行的创新公司，致力于将艺术与科技完美融合。</p>
                <div class="social-links">
                    <a href="#"><i class="fab fa-weibo"></i></a>
                    <a href="#"><i class="fab fa-weixin"></i></a>
                    <a href="#"><i class="fab fa-bilibili"></i></a>
                    <a href="#"><i class="fab fa-instagram"></i></a>
                </div>
            </div>
            <div class="footer-section">
                <h3>快速链接</h3>
                <a href="index.html">首页</a>
                <a href="toys.html">潮玩系列</a>
                <a href="artists.html">艺术家</a>
                <a href="exhibitions.html">展览信息</a>
            </div>
            <div class="footer-section">
                <h3>客户服务</h3>
                <a href="faq.html">常见问题</a>
                <a href="shipping.html">配送信息</a>
                <a href="returns.html">退换政策</a>
                <a href="contact.html">联系我们</a>
            </div>
            <div class="footer-section">
                <h3>联系信息</h3>
                <p><i class="fas fa-map-marker-alt"></i> 上海市浦东新区数字艺术园区</p>
                <p><i class="fas fa-phone"></i> 400-123-4567</p>
                <p><i class="fas fa-envelope"></i> info@psychedelictoys.com</p>
            </div>
        </div>
        <div class="copyright">
            <p>&copy; 2023 超现实数码潮玩. 保留所有权利. | 沪ICP备12345678号</p>
        </div>
    </footer>

    <script>
        // 发送验证码功能
        document.getElementById('sendCodeBtn').addEventListener('click', function () {
            const email = document.getElementById('email').value;
            const btn = this;

            // 简单的邮箱验证
            if (!email || !email.includes('@')) {
                alert('请输入有效的邮箱地址');
                return;
            }

            // 禁用按钮并开始倒计时
            btn.disabled = true;
            let countdown = 60;

            const timer = setInterval(function () {
                btn.textContent = `重新发送(${countdown}s)`;
                countdown--;

                if (countdown < 0) {
                    clearInterval(timer);
                    btn.textContent = '发送验证码';
                    btn.disabled = false;
                }
            }, 1000);

            // 模拟发送验证码
            console.log(`向 ${email} 发送验证码`);
            alert('验证码已发送到您的邮箱，请查收');
        });

        // 表单提交处理
        document.getElementById('forgotForm').addEventListener('submit', function (e) {
            e.preventDefault();

            const email = document.getElementById('email').value;
            const code = document.getElementById('verificationCode').value;

            // 简单的表单验证
            if (!email || !code) {
                alert('请填写所有必填字段');
                return;
            }

            // 模拟密码重置过程
            const resetBtn = document.querySelector('.btn-reset');
            const originalText = resetBtn.textContent;

            resetBtn.textContent = '处理中...';
            resetBtn.disabled = true;

            // 模拟API调用延迟
            setTimeout(() => {
                // 在实际应用中，这里会发送重置请求到服务器
                console.log('重置密码信息:', { email, code });

                // 模拟成功重置
                alert('密码重置成功！请使用新密码登录。');
                window.location.href = 'login.html';

                // 恢复按钮状态
                resetBtn.textContent = originalText;
                resetBtn.disabled = false;
            }, 1500);
        });

        // 鼠标跟随效果
        document.addEventListener('mousemove', function (e) {
            const shapes = document.querySelectorAll('.floating-shape');
            const x = e.clientX / window.innerWidth;
            const y = e.clientY / window.innerHeight;

            shapes.forEach((shape, index) => {
                const speed = (index + 1) * 0.5;
                const xMove = (x - 0.5) * speed * 50;
                const yMove = (y - 0.5) * speed * 50;

                shape.style.transform = `translate(${xMove}px, ${yMove}px)`;
            });
        });

        // 标题闪烁效果
        const title = document.querySelector('.forgot-header h1');
        setInterval(() => {
            title.style.textShadow = `0 0 ${20 + Math.random() * 20}px rgba(${Math.random() * 255}, ${Math.random() * 255}, ${Math.random() * 255}, 0.7)`;
        }, 2000);
    </script>
</body>

</html>